import React from 'react'
import { HashRouter as Router, Route, Switch } from 'react-router-dom'

import BaseLayout from './layout/BaseLayout'
import Login from './page/login'
import Register from './page/register'
import AA from './page/aa'
import BB from './page/bb'
import CC from './page/cc'

const App = () => {
    return (
        <Router>
            <Switch>
                <Route path='/' exact component={BaseLayout}></Route>
                <Route path='/login' component={Login}></Route>
                <Route path='/register' component={Register}></Route>
                <Route path='/aa' component={AA}></Route>
                <Route path='/bb' component={BB}></Route>
                <Route path='/cc' component={CC}></Route>
            </Switch>
        </Router>
    )
}

export default App